package com.cfets.annualAssessment.entity;

import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

import javax.persistence.OrderBy;
import javax.persistence.Table;

/**
 * Created by ShenYiChou on 2017/1/4.
 */
@Data
@Table(name = "t_annual_history")
public class AnnualHistory extends BaseEntity{
    @NotEmpty(message = "证书号不能为空")
    private String ca_num;
    @NotEmpty(message = "当次年检状态不能为空")
    private int annual_stat;
    @OrderBy("desc")
    private String post_time;
}